// app/model/user.js
module.exports = (app) => {
	const {
		STRING,
		INTEGER,
		BIGINT,
		DATE,
		TEXT
	} = app.Sequelize;
	const Article = app.model.define("article", {
		id: {
			type: INTEGER,
			primaryKey: true,
			autoIncrement: true
		},
		type: STRING,
		title: STRING,
		content: TEXT,
		addTime: DATE,
		updateTime: DATE,
		deleted: INTEGER
	}, {
		tableName: "dts_article",
		paranoid: false,
		timestamps: false,
		freezeTableName: true
	});

	return Article;
};
